Skip to content

fix: rename two lemmas that Tau Ceti v4.37.0-rc1 also declares - #306

Merged
RemyDegenne merged 2 commits into
mainfrom
fix/tauceti-name-clashes
Nov 23, 2026
Merged

RemyDegenne merged 2 commits into
mainfrom
fix/tauceti-name-clashes

Conversation

@RemyDegenne

Copy link
Copy Markdown
Collaborator

Tau Ceti's v4.37.0-rc1 tag declares two lemmas under the same full names, and with the same statements, as LML's ForMathlib copies:

Name LML Tau Ceti v4.37.0-rc1
Finset.measurable_inf' ForMathlib/MeasureTheory/Order/Lattice.lean MeasureTheory/Order/Lattice.lean#L33 (new file)
MeasureTheory.Measure.eq_dirac_of_subsingleton ForMathlib/MeasureTheory/Measure/Dirac.lean MeasureTheory/Measure/Dirac.lean#L148

A project that imports both, such as LMLExplore, fails to import them together. LMLExplore's sync to v4.37.0-rc1 is blocked on this, at its lake exe axioms audit and full lint. LML cannot import Tau Ceti, so LML's copies are renamed.

Renamed declarations

Old New
Finset.measurable_inf' Finset.measurable_inf''' (Tau Ceti also has Finset.measurable_inf'', its pointwise version)
MeasureTheory.Measure.eq_dirac_of_subsingleton MeasureTheory.Measure.eq_dirac_of_subsingleton'

There are no deprecated aliases, since an alias under the old name would recreate the clash. Finset.measurable_inf' had no uses by name. Its @[to_dual existing (attr := fun_prop)] now names Finset.measurable_sup' explicitly, so that to_dual still translates measurable_max into measurable_min. eq_dirac_of_subsingleton had 3 uses, in StationaryEnv and Kernel/Basic.

Checks run locally

  • lake build --wfail LeanMachineLearning LMLTutorial passes.
  • lake lint passes.

🤖 Generated with Claude Code

https://claude.ai/code/session_0196ftMSzkiTpRgwCeJW1wh6

Tau Ceti v4.37.0-rc1 declares `Finset.measurable_inf'` (new file
TauCeti/MeasureTheory/Order/Lattice.lean) and
`MeasureTheory.Measure.eq_dirac_of_subsingleton`
(TauCeti/MeasureTheory/Measure/Dirac.lean), with the same statements as
LML's ForMathlib copies. A project that imports both LML and Tau Ceti,
such as LMLExplore, then fails to import them together.

LML cannot import Tau Ceti, so its copies are renamed:
- `Finset.measurable_inf'` -> `Finset.measurable_inf'''`, since Tau
  Ceti also has `Finset.measurable_inf''`. `to_dual existing` now names
  `Finset.measurable_sup'` explicitly, so `to_dual` still translates
  `measurable_max` into `measurable_min`.
- `Measure.eq_dirac_of_subsingleton` ->
  `Measure.eq_dirac_of_subsingleton'`, and its 3 uses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0196ftMSzkiTpRgwCeJW1wh6
Co-authored-by: Rémy Degenne <remydegenne@gmail.com>
@RemyDegenne
RemyDegenne merged commit 859f9b0 into main Nov 23, 2026
1 check passed
@RemyDegenne
RemyDegenne deleted the fix/tauceti-name-clashes branch November 23, 2026 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant